package com.moons.idevices.printers;

import android.content.Context;
import android.os.Looper;
import android.util.Log;
import android.widget.Toast;

import com.moons.idevices.IPrinter;

public abstract class BasePrinter {

    protected void ShowToast(final String content) {
        (new Thread() {
            public void run() {
                Log.i("log", "run");
                Looper.prepare();
                Toast.makeText(mContext, content, Toast.LENGTH_SHORT).show();
                Looper.loop();
            }
        }).start();
    }

    protected Context mContext;
    protected IPrinter mIPrinter;

    public abstract void printDividerLine();
}
